package com.uniview.entity.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

@Entity
@Table(name = "sd_orders_warn")
public class ServiceOrderWarn implements Serializable {

	private static final long serialVersionUID = -1378047247729508940L;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "order_warn_sequence")
	@SequenceGenerator(name = "order_warn_sequence", sequenceName = "order_warn_sequence", allocationSize = 1, initialValue = 1)
	private Integer owId;

	private Integer orderId; // 工单ID

	private String handler; // 处理人
	
	private String handlerNo; // 处理人工号

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date warnTime; // 警告时间

	private String warnContent; // 警告内容

	public Integer getOwId() {
		return owId;
	}

	public void setOwId(Integer owId) {
		this.owId = owId;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

	public Date getWarnTime() {
		return warnTime;
	}

	public void setWarnTime(Date warnTime) {
		this.warnTime = warnTime;
	}

	public String getWarnContent() {
		return warnContent;
	}

	public void setWarnContent(String warnContent) {
		this.warnContent = warnContent;
	}

	public String getHandlerNo() {
		return handlerNo;
	}

	public void setHandlerNo(String handlerNo) {
		this.handlerNo = handlerNo;
	}

}
